﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ruanmou.Comm
{
    /// <summary>
    /// 配置文件读取
    /// </summary>
    public static class ConfigurationHelper
    {
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public static string DbConnection = null;
        /// <summary>
        /// Redis链接字符串
        /// </summary>
        public static string RedisConnection = null;
        public static void Init(Func<string, string> func)
        {
            DbConnection = func.Invoke("ConnectionStrings:DbConnectionString");
            RedisConnection = func.Invoke("RedisConnectionStrings:RedisPath");
        }
    }
}
